package devbureau.servlet;

public class Constants {

//  message
    public static final String MESSAGE_ERROR = "message_error";     //just messaging
    public static final String MESSAGE_OK = "message_ok";     //just messaging
// action
    public static final String ACTION = "action";

// common actions
    public static final String CREATE = "create";
    public static final String UPDATE = "update";
    public static final String DELETE = "delete";
    public static final String RESTORE = "restore";

// store attributes
    public static final String LINE_ID = "line_id";
    public static final String ORDER_ID = "order_id";
    public static final String ITEM_ID = "item_id";
    public static final String QTTY = "qtty";
    public static final String PRICE = "price";
    public static final String ORDER = "store_order";
    public static final String ORDER_DIR = "store_dir";


// customes attributes
    public static final String CUSTOMER_ID = "customer_id";
    public static final String LABEL ="label";
    public static final String INN = "inn";
    public static final String ADDRESS = "address";

// import attributes
   public static final String DELIVERY_ID = "delivery_id";
   public static final String FILE_UPLOAD = "file_upload";
   public static final String RATE = "rate";
   public static final String CURRENCY = "currency";

// order actions
    public static final String ORDER_DELETE = "order_delete";
    public static final String ORDER_CHANGE_CUSTOMER = "order_change_customer";
    public static final String ORDER_APPROVE = "order_approve";
    public static final String ORDER_PAY = "order_pay";
    public static final String ORDER_RETURN = "order_return";
    public static final String ORDER_REFUND = "order_refund";

// order line actions
    public static final String LINE_ADD = "line_add";
    public static final String LINE_DELETE = "line_delete";
    public static final String LINE_UPDATE = "line_update";

// attributes
    public static final String NAME_ATTR =  "userName"; //getDisplayName in Session
    public static final String ROLE_ATTR = "userRole"; // getUserRoleFrom Session

// users
    public static final String LOGIN = "login";
    public static final String PASSWORD = "password";
    public static final String FIRST_NAME = "firstName";
    public static final String LAST_NAME = "lastName";
    public static final String ROLE_ID = "role_id";
    
// report
    public static final String FROM = "from";
    public static final String TO = "to";
    public static final String BILL_REPORTS = "billReports";
    public static final String EXCEL = "excel";
    public static final String REMINDER = "reminders";

// login
    public static final String LOGOUT = "logout";
    public static final String LOGOUT_VAL = "1";

// ajax
    public static final String METHOD_NAME = "method_name";
    public static final String CUSTOMER_QUERY = "customer_query";
    public static final String JSON_CONTENT_TYPE = "application/json";
}